﻿using DTO;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IBll
{
    public interface ISroreBll
    {
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="srore">门店表</param>
        /// <returns>返回受影响行数</returns>
        Task<int> AddSrore(Srore srore);

        /// <summary>
        /// 显示+分页+查询
        /// </summary>
        /// <param name="pageindex">当前页</param>
        /// <param name="pagesize">每页显示条数</param>
        /// <param name="name">门店名称</param>
        /// <param name="time">创建日期</param>
        /// <returns></returns>

        SroreDto ShowSrore(int pageindex,int pagesize,string? name,DateTime? time);

        /// <summary>
        /// 删除
        /// 逻辑
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns>根据主键返回门店表</returns>
        Task<int> IDelete(int id);

        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns>根据主键进行反填</returns>
        Srore Find(int id);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="srore">门店表</param>
        /// <returns>返回受影响行数</returns>
        Task<int> Update(Srore srore);
    }
}
